﻿using System;

public class DecimalToBinaryConversion
{
    public static void Main()
    {
        Conversion("Problem 1: Decimal to Binary conversion", 10, 2);
    }

    public static void Conversion(string description, int from, int to)
    {
        string number = ConversionBetweenNumeralSystems.InputNumber(description, from);
        string minus = "";

        if (number[0] == '-')
        {
            minus = "-";
            number = number.Remove(0, 1);
        }

        number = ConversionBetweenNumeralSystems.RemoveLeadingZeros(number);
        Console.Clear();
        Console.WriteLine(description + "\n" + minus + number + "(" + from + ") = "
            + minus + ConversionBetweenNumeralSystems.Convert(number, from, to) + "(" + to + ")");
    }
}